From bae735390fe42f0c59dbfbea4cfe9349e074cee2 Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Tue, 1 Feb 2005 21:55:39 +0000 Subject: [PATCH] bitkeeper revision 1.1159.223.55 (41fffadb9KX8y2tjTwUVGZRrZQdJ2g) Fix incorrect result-check in xlvbd_init_device Signed-off-by: Jody Belka Signed-off-by: ian.pratt@cl.cam.ac.uk --- linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c index 00be870d91..25bfa59e79 100644 --- a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c +++ b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c @@ -317,7 +317,7 @@ static int xlvbd_init_device(vdisk_t *xd) down(&bd->bd_sem); gd = xlvbd_get_gendisk(mi, minor, xd); - if (mi == NULL) { + if (gd == NULL) { err = -EPERM; goto out; } -- 2.30.2